﻿using System.ComponentModel.DataAnnotations;

namespace Sita.Entities
{
    [MetadataType(typeof(MetaData.Customer))]
    public partial class Customer
    {
        public string FullName
        {
            get { return this.FirstName + " " + this.LastName; }
        }

        //public string FullNameWithCompany
        //{
        //    get
        //    {
        //        string companyName = string.Empty;
        //        if (this.CompanyName != "")
        //            companyName = " (" + this.CompanyName + ")";
        //        return this.FirstName + " " + this.LastName + companyName;
        //    }
        //}
    }
}
